import request from '@/utils/request'

// 查询评测人员列表
export function listUser(query) {
  return request({
    url: '/evalution/user/list',
    method: 'get',
    params: query
  })
}

// 查询评测人员详细
export function getUser(evalutionUserId) {
  return request({
    url: '/evalution/user/' + evalutionUserId,
    method: 'get'
  })
}

// 新增评测人员
export function addUser(data) {
  return request({
    url: '/evalution/user',
    method: 'post',
    data: data
  })
}

// 修改评测人员
export function updateUser(data) {
  return request({
    url: '/evalution/user',
    method: 'put',
    data: data
  })
}

// 删除评测人员
export function delUser(evalutionUserId) {
  return request({
    url: '/evalution/user/' + evalutionUserId,
    method: 'delete'
  })
}

// 导出评测人员
export function exportUser(query) {
  return request({
    url: '/evalution/user/export',
    method: 'get',
    params: query
  })
}